package cn.tedu.ivos.vehicle.mapper;

import cn.tedu.ivos.geofence.pojo.vo.GeofenceVO;
import cn.tedu.ivos.vehicle.pojo.dto.VehicleQuery;
import cn.tedu.ivos.vehicle.pojo.entity.Vehicle;
import cn.tedu.ivos.vehicle.pojo.vo.VehicleVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Repository表明该类是一个数据访问层的组件，用于数据访问层的持久化操作
 * 可以让Spring框架自动管理此类对象，还能进行事务管理等服务
 */
@Repository
public interface VehicleMapper {

    List<VehicleVO> selectVehicle(VehicleQuery vehicleQuery);

    void saveVehicle(Vehicle vehicle);

    void updateVehicle(Vehicle vehicle);

    void deleteVehicle(Long id);

    void updateNullValue(Vehicle vehicle);

    List<VehicleVO> selectDistribute(Vehicle vehicle);
}
